package com.lxmes.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 采购详情对象 cc_caigou_detail
 * 
 * @author 张志煜
 * @date 2022-06-11
 */
public class CcCaigouDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 采购单号 */
    private String caigouDanhao;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String itemCode;
    /** 规格型号 */
    @Excel(name = "规格型号")
    private String  spec;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    private Long supplyId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplyName;

    /** 大类Id */
    private String classId;

    /** 大类名称 */
    @Excel(name = "物料类型")
    private String className;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private BigDecimal caigouNum;

    /** 采购单价 */
    @Excel(name = "采购单价")
    private BigDecimal unitPrice;
    /** 参考单价 */
    @Excel(name = "参考单价")
    private BigDecimal cankaoPrice;
    /** 上次单价 */
    @Excel(name = "上次单价")
    private BigDecimal lastPrice;
    /** 采购总价 */
    @Excel(name = "采购总价")
    private BigDecimal totalPrice;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastDate;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date caigouDate;

    /** 单位（字典控制） */
    @Excel(name = "单位")
    private String unit;
    private Long  isRk;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCaigouDanhao(String caigouDanhao) 
    {
        this.caigouDanhao = caigouDanhao;
    }

    public String getCaigouDanhao() 
    {
        return caigouDanhao;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public void setSupplyId(Long supplyId)
    {
        this.supplyId = supplyId;
    }

    public Long getSupplyId() 
    {
        return supplyId;
    }
    public void setSupplyName(String supplyName) 
    {
        this.supplyName = supplyName;
    }

    public String getSupplyName() 
    {
        return supplyName;
    }
    public void setClassId(String classId)
    {
        this.classId = classId;
    }

    public String getClassId()
    {
        return classId;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setCaigouNum(BigDecimal caigouNum)
    {
        this.caigouNum = caigouNum;
    }

    public BigDecimal getCaigouNum()
    {
        return caigouNum;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setCaigouDate(Date caigouDate) 
    {
        this.caigouDate = caigouDate;
    }

    public Date getCaigouDate() 
    {
        return caigouDate;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public BigDecimal getCankaoPrice() {
        return cankaoPrice;
    }

    public void setCankaoPrice(BigDecimal cankaoPrice) {
        this.cankaoPrice = cankaoPrice;
    }

    public BigDecimal getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(BigDecimal lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public Long getIsRk() {
        return isRk;
    }
    public void setIsRk(Long isRk) {
        this.isRk = isRk;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("caigouDanhao", getCaigouDanhao())
            .append("itemName", getItemName())
            .append("itemCode", getItemCode())
            .append("supplyId", getSupplyId())
            .append("supplyName", getSupplyName())
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("caigouNum", getCaigouNum())
            .append("unitPrice", getUnitPrice())
            .append("totalPrice", getTotalPrice())
            .append("caigouDate", getCaigouDate())
            .append("unit", getUnit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
